
import com.wider.foundation.DLogger;
import com.wider.foundation.DLoggerRoot;
import com.wider.foundation.db.DBx;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.xml.sax.SAXException;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author B1367
 */
public class DBxTry {
    public static void main(String args[]){
        try {
            DLoggerRoot logger = DLogger.getRoot();
            logger.setStream(System.out);
            logger.setLevel(DLogger.DLevel.DEBUG);
            logger.enable();
            DBx dbx = new DBx(new File("resources/DBx.test.conf1.xml"), new File("resources/DBx.test.conf2.xml"));
            dbx.debugwalk();
            
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(DBxTry.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(DBxTry.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SAXException ex) {
            Logger.getLogger(DBxTry.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(DBxTry.class.getName()).log(Level.SEVERE, null, ex);
        } catch (Exception ex) {
            Logger.getLogger(DBxTry.class.getName()).log(Level.SEVERE, null, ex);
        }

    }
}
